//
//  LoginRequestLogic.h
//  AAIM
//
//  Created by awh on 2019/12/2.
//  Copyright © 2019年 AAIM. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginRequestLogic : NSObject

//获取配置信息
+(void)getAppInfoUrlwithSuccess:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

+(void)upLoadFile:(UIImage *)images  withToken:(NSString *)token Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//注册
+(void)UserRigisterWithHead:(NSString*)head  nickname:(NSString*)nickname password:(NSString*)password sex:(NSString*)sex username:(NSString*)username invitationCode:(NSString*)invitationCode userUUid:(NSString*)uuid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//登录  type 1账号密码登陆 ，2 验证码登录
+(void)UserLoginUserName:(NSString*)UserName withType:(NSInteger)type withPassword:(NSString*)password userUUid:(NSString*)uuid invitationCode:(NSString*)invitationCode Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//获取登录验证码
+(void)UserLoginCode:(NSString*)code withType:(NSString *)type Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//获取临时token
+ (void )getTempTokenSuccess:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//上传图片
+(void)upLoadReportPictureFile:(UIImage *)image  withToken:(NSString *)token withType:(NSString *)type Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
@end

NS_ASSUME_NONNULL_END
